<template>
    <div>
<form action="/">
  <van-search
    v-model="value"
    show-action
    placeholder="请输入搜索关键词"
    @search="onSearch"
    @cancel="onCancel"
  />
</form>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router';
const router=useRouter()
const onSearch=()=>{
    console.log('前往搜索');
    router.push('/home/ss')
    
}

</script>

<style lang="scss" scoped>

</style>